package homework.Demo1;

public class DispositMoney extends Thread {
    private Account account;
    public DispositMoney(Account account, String name) {
        super(name);
        this.account = account;
    }

    @Override
    public void run() {
        account.dispositMoney(100);
    }
}
